home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_item_oilkey.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
85 lines
# Jones 3D Cog Script
#
# item_OilKey.cog
#
# [RT]
#
# (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ===================================================================
symbols
message activated
message touched
message taken
cog talkCog local
sound foundSnd=INXJ167.wav local
thing player local
int bin=108 local
end
# ===================================================================
code
activated:
StartCutscene(0);
talkCog = GetCogByIndex(0);
SendMessage(talkCog, 27);
if (Rand() < 0.5)
{
SetExtCamOffset('0.15 -0.05 0.04');
}
else
{
SetExtCamOffset('-0.15 -0.05 0.04');
}
SetExtCamLookOffset('0.0 0.02 -0.01');
return;
# -------------------------------------------------------------------
touched:
player = GetSourceRef();
if (GetInv(player, bin) < GetInvMax(player, bin))
{
TakeItem(GetSenderRef(), player);
}
else
{
EndCutscene();
}
return;
# -------------------------------------------------------------------
taken:
player = GetSourceRef();
ChangeInv(player, bin, 1.0);
SetInvAvailable(player, bin, 1);
JonesInvItemChanged(bin);
Sleep(1.0);
PlayVoice(player, foundSnd, 1.0, 0);
EndCutscene();
return;
end